package com.eostoken.eos_wallet.ui.activity;

import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;

import com.blankj.utilcode.util.BarUtils;
import com.blankj.utilcode.util.FragmentUtils;
import com.eostoken.eos_wallet.R;
import com.eostoken.eos_wallet.base.BaseActivity;
import com.eostoken.eos_wallet.ui.fragment.MyStimulateFragment;
import com.eostoken.eos_wallet.ui.fragment.StimulateListFragment;
import com.eostoken.eos_wallet.ui.fragmentfactory.FragmentFactory;
import com.fredy.mvp.BasePresenter;
import com.fredy.mvp.BaseView;
import com.fredy.mvp.Model;
import com.qmuiteam.qmui.util.QMUIStatusBarHelper;

import static com.eostoken.eos_wallet.utils.Constants.CREATE_WALLET;
import static com.eostoken.eos_wallet.utils.Constants.MY_STIMULATE_2;
import static com.eostoken.eos_wallet.utils.Constants.RESOURCE_ADMINISTRATION;
import static com.eostoken.eos_wallet.utils.Constants.STIMULATE_LIST;

public class StimulateActivity extends BaseActivity {


    private boolean isShowState;
    private Fragment fragment;

    @Override
    public int getContentView() {
        return R.layout.activity_child;
    }

    @Override
    protected void initData() {
        isShowState = getIntent().getBooleanExtra("isShowState", true);
    }

    @Override
    public void initView() {
        QMUIStatusBarHelper.setStatusBarDarkMode(this);
        if (isShowState) {
            fragment = FragmentFactory.getInstatic().getFragment(MY_STIMULATE_2);
        } else {
            fragment = FragmentFactory.getInstatic().getFragment(STIMULATE_LIST);
        }
        FragmentUtils.add(getSupportFragmentManager(), fragment, R.id.frag_container);
    }

    @Override
    public boolean isShowState() {
        return getIntent().getBooleanExtra("isShowState", true);
    }

    @Override
    public Model createModel() {
        return null;
    }

    @Override
    public BaseView createView() {
        return null;
    }

    @Override
    public BasePresenter createPresenter() {
        return null;
    }

}
